package com.yangjie.autotest.hpsa.context;

import java.util.Calendar;

import javax.inject.Inject;

import com.yangjie.autotest.context.ContextIF;
import com.yangjie.autotest.hpsa.HPSAService;
import com.yangjie.autotest.testcase.AfterStepProcessor;
import com.yangjie.autotest.testcase.xml.Step;

public class HPSAAfterStepProcessor implements AfterStepProcessor{
	@Inject
	HPSAService hpsaService = null;
	
	
	@Override
	public void afterStep(ContextIF testcaseContext, Step step) {
		// TODO Auto-generated method stub
		testcaseContext.setProperty("endDateOfStep", Calendar.getInstance().getTime());
		testcaseContext.setProperty("maxPsIdAfterStep", hpsaService.getCurrentMaxOrderId());
		testcaseContext.setProperty("maxAuditIdAfterStep", hpsaService.getCurrentMaxAuditId());
	}

}
